<?php

/**
  Document   : whos_viewed
  Created on : 18.06.2013., 14.44.27
  Author     : Sasa
  Description:
 */

//$user_name = ( $user->name!="" )?$user->name:$user->username;
$user_name = $user->username;
?>


<div id="f_main">
 	<div class="f_container">
    
    <h3>
      <?php 
      if( true == $user->is_online)
        echo "<span class='online' title='Online'></span>";
      else
        echo "<span class='offline' title='Offline'></span>";
      ?>
      <?php echo( $user->name!="" )?$user->name:$user->username; ?> (<?php echo $user->age; ?>)
    </h3>
     <div class="block-left">
    	<?php if( NULL != $main_image ){ ?>
    	<img class="profil" src="<?php echo base_url(); ?>profile/image/small/<?php echo $user->id .'/'. $main_image; ?>" alt="<?php echo $user_name; ?>" />
        <?php } else { ?>
        <img class="profil" src="<?php echo base_url(); ?>img/no_image.gif" alt="" />
        <?php } ?>
        
        <p><img src="<?php echo base_url(); ?>img/template/gallery.png" align="left" width="25" height="20" alt="gallery"><a href="<?php echo base_url(); ?>profile/view-profile-photo/<?php echo $user->username ?>.htm"><?php echo lang('view_photo_gallery'); ?></a></p>
        <div class="baloon"></div>
        <div class="about-me">
        <p><span><?php echo lang('flirtyy_profile_text'); ?> </span><?php echo $user->flirt_text; ?></p>
        </div>
    </div><!--end block-left-->
    
    <div class="block">
    	<h4><?php echo lang('whos_viewed_my_profile'); ?></h4>
        
        <div id="response"></div>
        
        <?php
            $this->load->view('profile/part/whos_viewed_items');
        ?> 
        
    </div><!--end block-->
    <div class="block-right">
    	<div class="side-module">
        
              <?php $this->load->view('modules/my_favorites'); ?>
          
        </div><!--End side-module-->
        <div class="basic-module">
          
              <?php $this->load->view('modules/whos_viewed_your_profile');  ?>
          
        </div><!--End basic-module-->
        <div class="side-module">
          
              <?php $this->load->view('modules/my_friends');  ?>
          
        </div><!--End side-module-->
    </div><!--end block-right-->
    </div><!--end f_container-->
 </div><!--end f_main-->
